@layout("/common/_container.html"){
<style>.btnBox{position:fixed;bottom:0;width:100%;padding:10px;background:#f1f1f1;text-align:center}.btnBox>button{margin:0;color:inherit;background:white;border:1px solid #999999;font-size:1em;text-align:center}.btnBox>button:first-of-type{background:#00a0ea;color:white;border:none;}.receptionThr{padding:10px 20px;}.receptionThr select{width:180px;height:28px;padding-left:10px;}.receptionThr > div span{display:inline-block;width:60px;}</style>
<div class="ibox float-e-margins">
    <div style="display: none">
        <input type="hidden" id="flowNo" value="${flowNo}">
        <input type="hidden" id="customerPhone" value="${customerPhone}">
        <input type="hidden" id="id" value="${id}">
    </div>
    <div>
        <div style="background: #00a0ea;color: white;padding: 5px 10px;">未接电话处理备注</div>
        <div class="receptionThr">
            <div>
                <textarea id="remarks" name="remarks" placeholder="未接电话处理备注" style="width: 99%;height: 180px;padding-left: 5px;"></textarea>
            </div>
        </div>
        <div class="btnBox">
            <button type="button" class="btn" id="ensure" onclick="handleMissed()">提交</button>
            <button type="button" class="btn" id="cancel" onclick="parent.layer.close(parent.layer.getFrameIndex(window.name))">取消</button>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/marketing/reservations/callRecord.js?v=20200628"></script>
<script>
    $(function () {
        var date = new Date();
        $.ajax({
            url: parent.parent.document.getElementById("whurl").value,
            type: "get",
            data: {
                "op": "callout",
                "Exten":parent.parent.document.getElementById("exten").value,
                "phone": document.getElementById("customerPhone").value.substring(0,11),
                "flowid": document.getElementById("flowNo").value
            },
            success: function (data) {
                Feng.success('呼出成功!请准备··');
            }
        })
    });
</script>
@}